libxl: do not leak an event struct on ignored ao progress
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 28 Jun 2012 17:43:28 +0000 (18:43 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 28 Jun 2012 17:43:28 +0000 (18:43 +0100)
commit34d1cced249c2fe083968b07331baa857db60b4e
tree7b08f9ae60dbd56eabe0db27917c2021b1d825b6
parentac29cf9641e2db5f7dea35df5d049d26724a6602
libxl: do not leak an event struct on ignored ao progress

On entry to libxl__ao_progress_report, the caller has allocated an
event.  If the progress report is to be ignored, we need to free it.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl_event.c